package cn.edu.scau.cmi.zhuangxipan.simpleFactoryMethod;

import cn.edu.scau.cmi.zhuangxipan.simpleFactoryMethod.domain.Beef;
import cn.edu.scau.cmi.zhuangxipan.simpleFactoryMethod.domain.Chicken;
import cn.edu.scau.cmi.zhuangxipan.simpleFactoryMethod.domain.Meat;
import cn.edu.scau.cmi.zhuangxipan.simpleFactoryMethod.domain.Pork;

public class MeatFactory {
	public static Meat getMeat(String meatTypeString) {
		Meat meat=null;
		switch(meatTypeString) {
		case "beef":
			meat =new Beef(); break;
		case "pork":
			meat =new Pork();break;
		case "chicken":
			meat =new Chicken();break;
		}
		return meat;
	}

}

